<div class="container">

    <div class="page-header">
        <div class="row">
            <h1 class="span8">View all mails</h1>
            <span class="span4">

            </span>
        </div>


    </div>


    <div class="row">

        <div class="span12">

            <div class="demo_jui">

                <table class="table table-striped table-bordered table-condensed objects-view">
                    <thead>
                        <tr>
                            <th class="unit">ID Code</th>
                            <th>Mail</th>
                            <th>Date</th>
                        </tr>
                    </thead>
                    <tbody>

                        <?  foreach($all_mails as $mail): ?> 

                            <tr>
                                <td><?=$mail['ID']?></td>
                                <td><strong><?=$mail['email']?></strong></td>              
                                <td><strong><?=date('d.m.Y',$mail['created'])?></strong></td>              
                               
                            </tr>                                      

                            <? endforeach; ?>

                    </tbody>
                </table>

            </div>

        </div>

    </div>

</div>
